import ZbRequest from '../index'

export const addNews = (data) => ZbRequest.post('/news', data)
export const deleteNews = (id) => ZbRequest.delete('/news/' + id, {})
export const updateNews = (id, data) => ZbRequest.put('/news/' + id, data)
export const getNews = (data) => ZbRequest.get('/news', data)
export const getNewsDetail = (id) => ZbRequest.get('/news/' + id, {})